Component org.nuxeo.ecm.directories
In bundle org.nuxeo.ecm.default.config
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.directories">
<!-- template defining the base storage -->
<extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories">
<directory name="template-directory" template="true">
<cacheTimeout>3600</cacheTimeout>
<cacheMaxSize>1000</cacheMaxSize>
<dataSource>java:/nxsqldirectory</dataSource>
<autoincrementIdField>false</autoincrementIdField>
<createTablePolicy>on_missing_columns</createTablePolicy>
</directory>
</extension>
<!-- template definitions for vocabularies -->
<extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">
<directory name="template-vocabulary" template="true" extends="template-directory">
<schema>vocabulary</schema>
<idField>id</idField>
</directory>
<directory name="template-xvocabulary" template="true" extends="template-directory">
<schema>xvocabulary</schema>
<idField>id</idField>
</directory>
<directory name="template-l10nxvocabulary" template="true" extends="template-directory">
<schema>l10nxvocabulary</schema>
<idField>id</idField>
</directory>
<directory name="template-documentsLists" template="true" extends="template-directory">
<schema>documentsLists</schema>
<idField>id</idField>
</directory>
</extension>
<!-- vocabulary definitions -->
<extension target="org.nuxeo.ecm.directory.GenericDirectory" point="directories">
<directory name="country" extends="template-xvocabulary">
<parentDirectory>continent</parentDirectory>
<dataFile>directories/country.csv</dataFile>
</directory>
<directory name="continent" extends="template-vocabulary">
<deleteConstraint
class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
<property name="targetDirectory">country</property>
<property name="targetDirectoryField">parent</property>
</deleteConstraint>
<dataFile>directories/continent.csv</dataFile>
</directory>
<directory name="l10ncoverage" extends="template-l10nxvocabulary">
<parentDirectory>l10ncoverage</parentDirectory>
<deleteConstraint
class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
<property name="targetDirectory">l10ncoverage</property>
<property name="targetDirectoryField">parent</property>
</deleteConstraint>
<dataFile>directories/l10ncoverage.csv</dataFile>
</directory>
<directory name="subtopic" extends="template-xvocabulary">
<parentDirectory>topic</parentDirectory>
<dataFile>directories/subtopic.csv</dataFile>
</directory>
<directory name="topic" extends="template-vocabulary">
<deleteConstraint
class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
<property name="targetDirectory">subtopic</property>
<property name="targetDirectoryField">parent</property>
</deleteConstraint>
<dataFile>directories/topic.csv</dataFile>
</directory>
<directory name="l10nsubjects" extends="template-l10nxvocabulary">
<parentDirectory>l10nsubjects</parentDirectory>
<deleteConstraint
class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
<property name="targetDirectory">l10nsubjects</property>
<property name="targetDirectoryField">parent</property>
</deleteConstraint>
<dataFile>directories/l10nsubjects.csv</dataFile>
</directory>
<directory name="subject" extends="template-vocabulary">
<types>
<type>system</type>
</types>
<dataFile>directories/subject.csv</dataFile>
</directory>
<directory name="search_operators" extends="template-vocabulary">
<types>
<type>system</type>
</types>
<dataFile>directories/search_operators.csv</dataFile>
</directory>
<directory name="documentsLists" extends="template-documentsLists">
<types>
<type>system</type>
</types>
<permissions>
<permission name="Write">
<group>Everyone</group>
</permission>
</permissions>
</directory>
<directory name="language" extends="template-vocabulary">
<dataFile>directories/language.csv</dataFile>
</directory>
<directory name="nature" extends="template-vocabulary">
<dataFile>directories/nature.csv</dataFile>
</directory>
<!-- @since 5.6, deprecated since 8.1, see NXP-18728 -->
<directory name="locale" extends="template-vocabulary">
<types>
<type>system</type>
</types>
<dataFile>directories/locale.csv</dataFile>
</directory>
</extension>
</component>